package com.pureut.system.mapper;

import com.pureut.system.domain.SysTheAlarm;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description
 * @Param
 * @Date
 * @Author hl
 **/
public interface SysTheAlarmMapper {

    /**
     * 新增告警信息
     */
    int insertSysTheAlarm(List<SysTheAlarm> list);

    /**
     * 删除多个告警信息
     */
    int deleteSysTheAlarmById(String[] materialIdS);

    /**
     * 查询告警信息
     */
    List<SysTheAlarm> selectSysTheAlarmList(long materialId,int alarmOfMaterial);

    /**
     * 删除单个告警信息
     */
    int deleteSysTheAlarmOnById(long materialId);

    /**
     * 获取告警信息
     * @param materialCode,type
     * @return
     */
    SysTheAlarm getAlarm(@Param("materialCode") String materialCode,@Param("type") String type);
}
